<?php
#### ICON ######################################################################
function icon($name, $alt = false, $title = false) {
	$name = explode('.', $name);
	$alt = ($alt ? 'alt="'.$alt.'" ' : null);
	$title = ($title ? 'title="'.$title.'" ' : null);
	return '<img class="icon" src="'.url().'/media/icons/'.
		$name[0].(isset($name[1]) ? $name[1] : '.png').
		'" '.$title.$alt.'/>';
}
?>